import request from '../utils/request';
// import { useTokenStore } from '../stores/token';
// 提交作业存放列表

export const getAssignmentService = (pageData) => {
    return request.get('/assSubmit/list',{params:pageData})
}

export const getByIdService = (assId) => {
    return request.get('/assSubmit/'+assId)
}
// 新增作业
export const addAssignmentService = (data) => {
    return request.post('/assSubmit/add', data) 
}

export const deleteAssignmentService = (id) => {
    return request.delete('/assSubmit/'+id)
}

// 课程数据修改
export const updateAssignmentService = (data) => {
    return request.put('/assSubmit/update', data)
}

